package com.hj.edu.web.controller;

import com.hj.edu.Service.UserService;
import com.hj.edu.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("user")
public class UserController {

    @Autowired
    private UserService userService;
    @RequestMapping("login")
    public String login(){
        System.out.println("hahahhah");
        return "Default";
    }

    @RequestMapping("find")
    public String find(Integer id){
        User user=userService.findById(id);
        System.out.println(user);
        return null;


    }

    @RequestMapping("manage")
    public String manage(){

        return "User/UserManage";


    }

    @RequestMapping("info")
    public String info(){

        return "User/UserInfo";


    }


}
